package cn.com.dcsgo.feign;

import cn.com.dcsgo.dto.ShopInfoDTO;
import cn.com.dcsgo.feign.fallback.ShopFeignClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

/**
 * ShopFeignClient
 *
 * @author Dcsgo
 * @since 2025/11/15 10:03
 */
@FeignClient(value = "store-service", fallback = ShopFeignClientFallBack.class)
public interface ShopFeignClient {
    /**
     * 获取店铺ID及其名称
     *
     * @param shopIds 店铺ID列表
     * @return 店铺ID及其名称列表
     */
    @GetMapping("rpc/shop/ids/id-and-shop-name")
    List<ShopInfoDTO> getShopInfoDTOList(@RequestParam("shopIds") Set<Long> shopIds);

}
